package com.hx.noPattern;

/**
 * @author Huathy
 * @date 2021-09-05 15:31
 * @description
 */
public class BattercakeTest {
    public static void main(String[] args) {
        Battercake battercake = new Battercake();
        System.out.println(battercake.getMsg() + "，价格" + battercake.price());

        Battercake battercake1 = new BattercakeEgg();
        System.out.println(battercake1.getMsg() + "，价格" + battercake1.price());

        Battercake battercake2 = new BattercakeEggSausage();
        System.out.println(battercake2.getMsg() + "，价格" + battercake2.price());
    }
}
